{% extends 'front/front_base.html' %}
{% block title %}
    发布帖子
{% endblock %}
{% block css %}
    <link rel="stylesheet" href="{{ static('front/css/front_add_post.css') }}">
{% endblock %}
{% block content %}
    <form action="" method="post">
        <div class="form-group">
            <div class="input-group">
                <span class="input-group-addon">标题</span>
                <input type="text" class="form-control" name="title">
            </div>

        </div>
        <div class="form-group">
            <div class="input-group">
                <span class="input-group-addon">板块</span>
                <select name="board_id" class="form-control">
                    {% for board in boards %}
                        <option value="{{ board.id }}">{{ board.name }}</option>
                    {% endfor %}


                </select>
            </div>
        </div>
        <div class="form-group " >
            <!-- 实例化编辑器 -->
            <script type="text/plain" id="editor" name="editor" >

            </script>

        </div>
        <div class="form-group">

            <button class="btn btn-danger" id="submit-btn">发布帖子</button>
        </div>
    </form>

{% endblock %}
{% block js %}
    <!-- 配置文件 -->
    <script type="text/javascript" src="{{ static('ueditor/ueditor.config.js') }}"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="{{ static('ueditor/ueditor.all.js') }}"></script>
    <script type="text/javascript" src="{{ static('front/js/front_apost.js') }}"></script>
{% endblock %}